package com.example.jetpacktest.activity

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.lifecycle.Observer
import androidx.lifecycle.ViewModelProvider
import androidx.recyclerview.widget.DiffUtil
import com.example.jetpacktest.R
import com.example.jetpacktest.databinding.ActivityTest005Binding
import com.example.jetpacktest.viewmodel.Test005ViewModel

class Test005Activity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        //val binding: ActivityTest005Binding = DataBindingUtil.setContentView(this, R.layout.activity_test005)
        val binding: ActivityTest005Binding = ActivityTest005Binding.inflate(layoutInflater)
        setContentView(binding.root)
        val viewModel: Test005ViewModel = ViewModelProvider(this).get(Test005ViewModel::class.java)
        binding.viewModel = viewModel
        binding.lifecycleOwner = this
        /*viewModel.count.observe(this, Observer<Int>{

        })*/
        //DiffUtil

    }


}